package com.lagou.edu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.mail.javamail.JavaMailSenderImpl;

@SpringBootApplication
@EnableDiscoveryClient
public class LagouServiceEmailApplication {
    public static void main(String[] args) {
        SpringApplication.run(LagouServiceEmailApplication.class,args);
    }

//    @Bean
//    public JavaMailSenderImpl JavaMailSender(){
//        JavaMailSenderImpl mailSender = new JavaMailSenderImpl();
//        mailSender.setHost("smtp.qq.com");
//        mailSender.setUsername("xxxxxxx@qq.com");
//        mailSender.setPassword("xxxxxxx");
//        return  mailSender;
//    }

}
